package com.shangxian.giveithome.code;

import lombok.Getter;

@Getter
public enum CheckCode implements Code {
    Img_NOT_Illegal(false, 280001, "图片不合法"),
    Content_NOT_Illegal(false,280002,"内容不合法");
    private boolean success;

    private Integer code;

    private String message;

    CheckCode(boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return this.success;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
